class AppException(Exception):
    def __init__(self, code: int = 400, msg: str = "Error"):
        self.code = code
        self.msg = msg